#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
int main()
{
    int n;
    int i = 0;
    int p = 0;
    int m = 0;
    n = 1234;
    while (i < 4)
    {
        p = n % 10;
        m = m * 10 + p;
        n = n / 10;
        i++;
    }
    printf("%d", m);
    return 0;
}
